package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 赛事组别
 * </p>
 *
 * @author author
 * @since 2024-09-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_competition_group")
@ApiModel(value="GeConCompetitionGroup对象", description="赛事组别")
public class GeConCompetitionGroup implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "组别id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "组别名称")
    private String name;

    @ApiModelProperty(value = "赛事id")
    private String sportId;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "总人数")
    private Integer num;

    @ApiModelProperty(value = "已报名人数")
    @TableField(exist = false)
    private Long signUpNum;

    @ApiModelProperty(value = "剩余人数")
    @TableField(exist = false)
    private Long leaveNum;

}
